package de.tabuma.soap;

import de.tabuma.soap.entity.xsd.*;
import javax.xml.bind.*;
import java.io.*;

/**
 *
 * @author alefen
 */
@Deprecated
public class XsdFactory {

    public static XsSchema loadXsdFile(String file) {
        return WsdlFactory.loadXsd(file);
    }
    public static void main(String args[]) {
        String file = "/home/alefen/NetBeansProjects/TestBPELProzess/src/TestSchema.xsd";
        XsSchema xsd = loadXsdFile(file);
        System.out.println(xsd);
        System.out.println(xsd.getTargetNamespace());
        System.out.println(xsd.getXmlnsXs());
        System.out.println(xsd.getVersion());
        System.out.println(xsd.getElementFormDefault());
        System.out.println(xsd.getXsIncludeOrXsImportOrXsRedefineOrXsAnnotationOrXsSimpleTypeOrXsComplexTypeOrXsElementOrXsAttributeOrXsAttributeGroupOrXsGroupOrXsNotation());
    }
}
